package com.summer.edu.controller;

import com.summer.R;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/eduservice/user")
@CrossOrigin
public class LoginController {
    @PostMapping("login")
    public R login(){
        return R.ok().data("token","admin");
    }
    @GetMapping("info")
    public R info(){
        return R.ok().data("roles","[admin]").data("name","admin").data("avatar","https://file.qqtouxiang.com/xiaohai/2020-02-20/bf3c55b7003b1cdb1e642b4dbeb05c3c.jpeg");
    }
}
